﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;

namespace Infraestructure.CrossCutting.NetFramework.Parsering
{
    public class ParserBase
    {
        protected List<ArrayList> GetLinesTxtSeparared(string fileName, char c)
        {
            List<ArrayList> list = new List<ArrayList>();
            ArrayList element;
            using (StreamReader sr = new StreamReader(fileName))
            {
                String line;
                while ((line = sr.ReadLine()) != null)
                {
                    string[] lineTxt = line.Split(c);
                    element = new ArrayList();
                    element.AddRange(lineTxt);
                    list.Add(element);
                }
            }
            return list;
        }
    }
}
